package com.xhwy.controller;

import com.xhwy.entity.Profession;
import com.xhwy.service.ProfessionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : TheBugMaker
 * date    ：2021-11-12 16:27
 */
@RestController
@RequestMapping("profession")
@Api(tags = "职业测试接口")
public class ProfessionController {

    @Autowired
    private ProfessionService professionService;

    @PostMapping("add")
    @ApiOperation("职业添加接口")
    public String addProfession(@RequestBody Profession profession){
        professionService.addProfession(profession);
        return "ok";
    }

}
